Noncommutative signal-flow graph